<?php
namespace  App\Models;

use Illuminate\Database\Eloquent\Model;

class Questions extends  Model{

    const TYPE_JGS_MORNING = 1;//1.高级系统架构师上午卷;
    const TYPE_JGS_AFTERNOON = 2;//2.高级系统架构师下午卷;

    protected $table = 'questions';
    protected $fillable= [
        'title',
        'description',
        'type',
        'exam_time',
        'number',
        'average',
        'sort',
        'isdelete',
    ];

    public static function types(){
        return [
            static::TYPE_JGS_MORNING =>[
                'id' =>  static::TYPE_JGS_MORNING,
                'title' => '高级系统架构师上午卷'
            ],
            static::TYPE_JGS_AFTERNOON =>[
                'id' =>  static::TYPE_JGS_AFTERNOON,
                'title' => '高级系统架构师下午卷'
            ],
        ];
    }
}